import request from '@/utils/request'

// 获取-权限点列表
export const getpermission = () => request.get(`/sys/permission`) 

// 删除-权限点
export const delpermission = id => request.delete(`/sys/permission/${id}`) 

// 新增-权限点
export const addPermission = data => request.post(`/sys/permission`, data) 

// 修改-权限点
export const putPermission = data => request.put(`/sys/permission${data.id}`, data) 

// 获取-权限点详情
export const updataPermission = id => request.get(`/sys/permission/${id}`) 

// 分配权限-角色
export const assignPrem = data => request.put(`/sys/role/assignPrem`, data) 